<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.MainMenu"%>
<%@ page import="com.conversationboard.controller.confirm.Confirm"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>

<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>Confirm Yellow Card</title>
		<link rel="stylesheet" type="text/css" href="${contextPath}/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>"/>
	</head>

	<body>
	
		<%= MainMenu.display(request.getUserPrincipal()) %>
	
		<div class="headingblock">
			<h1>Please Confirm...</h1>
		</div>
		
		<div class="mainblock">

			<div class="formsectionlight">

			<p>Yellow Card a User</p>

			<form class="formsection" action="${contextPath}/Admin/AdminYellowCardControllerServlet" method="post">
				
				<%= Confirm.getKey(request.getUserPrincipal().getName()) %>
				
			 	<input name="boardid" type="hidden" value="${param.boardid}" />
			 	<input name="threadid" type="hidden" value="${param.threadid}" />
			 	<input name="messageid" type="hidden" value="${param.messageid}" />
			 	<input name="loginid" type="hidden" value="${param.loginid}" />
				<label for="reason">Enter a reason for the yellow card:</label>
				<input type="text" name="reason" class="smalltextbox" /> 
				
				<br />

			 	<input type="submit" value="Confirm Yellow Card" />
			 	
			 	<p>Please note that the authority to carry out this action will expire shortly (five minutes).
			 	   If it does not work, you will have to go back to the main page and carry out the action again.</p>
			 	
			</form>
			
			<p class='notworksafe'><strong>If you did not initiate an admin action yourself, then you are likely at this page as a result
			   of an attempt to subvert the board's normal operation. Investigation of the content of the
			   thread in question is advised.</strong></p>

			</div>
			
		</div>
		
		<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
		<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 
		
	</body>
	
</html>
